import java.util.*;

/**
 * This class holds the day of an appointment
 * 
 * @author Matthew Edwards 
 * @version 3-5-11
 */
public class AppointmentDay {
    
    private ArrayList<Appointment> appointments = new ArrayList<Appointment>();
    
    public AppointmentDay(ArrayList<Appointment> appointments){
        
        this.appointments = appointments;
        
    }
    
    /**Adds a appointment to the database
     * 
     * @param input
     *     The appointment to be input
     * @param appointment
     *     The number of the days to be put in
     */
    public void add(ArrayList<Appointment> input, int appointment)
    {
        appointments.add(appointment, input);
    }
    
    /**Deletes an appointment at it's value
     * 
     * @param value
     *    The value that determines which appointment is deleted
     */
    public void delete(int value)
    {
        appointments.remove(value);
    }
    
    /**Gets the appointments inside the calendar
     * 
     * @return
     *    the appointments in the calendar
     */
    public ArrayList<Appointment> getAppointments()
    {
        return appointments;
        
    }
    
    
}
